Carbon


FSpMakeFSRef

Header: Files.h Carbon status: Supported

Converts an FSSpec to an FSRef.

OSErr FSpMakeFSRef (
    const FSSpec *source, 
    FSRef *newRef
);
source

The FSSpec which you wish to convert. This parameter must contain a valid FSSpec for an exisiting file or directory; if not, the call will return fnfErr.

newRef

On return, a pointer to the FSRef which the File Manager has constructed for the file or directory specified in the given FSSpec.

function result

A result code.

DISCUSSION

To obtain an FSSpec from an FSRef, use the FSGetCatalogInfo call.

AVAILABILITY

Supported in Carbon. Available in Mac OS 9, and later when Carbon 1.0.2 or later is present.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)